package com.education.pojo;

import java.io.Serializable;
import java.util.Set;

public class Role  implements Serializable {
    private Integer roleId;

    private String roleName;

    private String desc ;

    private Set<Admin> adminSet ;

    private Set<Function> functionSet;

    public Set<Admin> getAdminSet() {
        return adminSet;
    }

    public void setAdminSet(Set<Admin> adminSet) {
        this.adminSet = adminSet;
    }

    public Set<Function> getFunctionSet() {
        return functionSet;
    }

    public void setFunctionSet(Set<Function> functionSet) {
        this.functionSet = functionSet;
    }

    public Role(Integer roleId, String roleName, String desc) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.desc = desc ;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Role() {
        super();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }
}